package com.web.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.web.pojo.dto.SetSwitchStateDTO;

import java.io.Serializable;
import java.util.Date;

public class Device implements Serializable {
    private Integer deviceId;//设备id
    private String deviceEui;//设备Eui
    private String deviceJoinEui;//JoinEUI
    private String deviceName;//设备名
    private String deviceAddr;//设备地址短码
    private String deviceAppkey;//初始密码
    private String deviceAppskey;//应用层密码
    private String deviceNwkskey;//网络层密码
    private String deviceType;//设备类型
    private String deviceProtocolType;//设备协议类型
    private String deviceUser;//用户名称
    private String deviceProtocol;//设备协议
    private Integer deviceAddressId;//地址节点id
    private String deviceBindGateway;//绑定的网关
    private String deviceMark;//备注
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;//创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;//修改时间
    private String createBy;//创建者
    private String updateBy;//更新者
    private Integer delFlag;//是否删除


    public Device() {
    }

    public Device(Integer deviceId, String deviceEui, String deviceJoinEui, String deviceName, String deviceAddr, String deviceAppkey, String deviceAppskey, String deviceNwkskey, String deviceType, String deviceProtocolType, String deviceUser, String deviceProtocol, Integer deviceAddressId, String deviceBindGateway, String deviceMark, Date createDate, Date updateDate, String createBy, String updateBy, Integer delFlag) {
        this.deviceId = deviceId;
        this.deviceEui = deviceEui;
        this.deviceJoinEui = deviceJoinEui;
        this.deviceName = deviceName;
        this.deviceAddr = deviceAddr;
        this.deviceAppkey = deviceAppkey;
        this.deviceAppskey = deviceAppskey;
        this.deviceNwkskey = deviceNwkskey;
        this.deviceType = deviceType;
        this.deviceProtocolType = deviceProtocolType;
        this.deviceUser = deviceUser;
        this.deviceProtocol = deviceProtocol;
        this.deviceAddressId = deviceAddressId;
        this.deviceBindGateway = deviceBindGateway;
        this.deviceMark = deviceMark;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.createBy = createBy;
        this.updateBy = updateBy;
        this.delFlag = delFlag;
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceEui() {
        return deviceEui;
    }

    public void setDeviceEui(String deviceEui) {
        this.deviceEui = deviceEui;
    }

    public String getDeviceJoinEui() {
        return deviceJoinEui;
    }

    public void setDeviceJoinEui(String deviceJoinEui) {
        this.deviceJoinEui = deviceJoinEui;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceAddr() {
        return deviceAddr;
    }

    public void setDeviceAddr(String deviceAddr) {
        this.deviceAddr = deviceAddr;
    }

    public String getDeviceAppkey() {
        return deviceAppkey;
    }

    public void setDeviceAppkey(String deviceAppkey) {
        this.deviceAppkey = deviceAppkey;
    }

    public String getDeviceAppskey() {
        return deviceAppskey;
    }

    public void setDeviceAppskey(String deviceAppskey) {
        this.deviceAppskey = deviceAppskey;
    }

    public String getDeviceNwkskey() {
        return deviceNwkskey;
    }

    public void setDeviceNwkskey(String deviceNwkskey) {
        this.deviceNwkskey = deviceNwkskey;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getDeviceProtocolType() {
        return deviceProtocolType;
    }

    public void setDeviceProtocolType(String deviceProtocolType) {
        this.deviceProtocolType = deviceProtocolType;
    }

    public String getDeviceUser() {
        return deviceUser;
    }

    public void setDeviceUser(String deviceUser) {
        this.deviceUser = deviceUser;
    }

    public String getDeviceProtocol() {
        return deviceProtocol;
    }

    public void setDeviceProtocol(String deviceProtocol) {
        this.deviceProtocol = deviceProtocol;
    }

    public Integer getDeviceAddressId() {
        return deviceAddressId;
    }

    public void setDeviceAddressId(Integer deviceAddressId) {
        this.deviceAddressId = deviceAddressId;
    }

    public String getDeviceBindGateway() {
        return deviceBindGateway;
    }

    public void setDeviceBindGateway(String deviceBindGateway) {
        this.deviceBindGateway = deviceBindGateway;
    }

    public String getDeviceMark() {
        return deviceMark;
    }

    public void setDeviceMark(String deviceMark) {
        this.deviceMark = deviceMark;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "Device{" +
                "deviceId=" + deviceId +
                ", deviceEui='" + deviceEui + '\'' +
                ", deviceJoinEui='" + deviceJoinEui + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", deviceAddr='" + deviceAddr + '\'' +
                ", deviceAppkey='" + deviceAppkey + '\'' +
                ", deviceAppskey='" + deviceAppskey + '\'' +
                ", deviceNwkskey='" + deviceNwkskey + '\'' +
                ", deviceType='" + deviceType + '\'' +
                ", deviceProtocolType='" + deviceProtocolType + '\'' +
                ", deviceUser='" + deviceUser + '\'' +
                ", deviceProtocol='" + deviceProtocol + '\'' +
                ", deviceAddressId=" + deviceAddressId +
                ", deviceBindGateway='" + deviceBindGateway + '\'' +
                ", deviceMark='" + deviceMark + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", createBy='" + createBy + '\'' +
                ", updateBy='" + updateBy + '\'' +
                ", delFlag=" + delFlag +
                '}';
    }


}
